/********************************************
*
*
*
*  test_Tick.c
*
*
********************************************/


#ifdef __cplusplus
 #if __cplusplus
  extern "C"{
 #endif
#endif /* __cplusplus */


#include "test_suite.h"
#include "d_tick.h"



UINT32 TEST_DMS_GetSysTick_00()
{
    UINT32 ulTick1,ulTick2;


    ulTick1 = DMS_GetSysTick();
    printf("\r\nTick %d \r\n",ulTick1);

    DMS_TaskDelay(3000);

    ulTick2 = DMS_GetSysTick();
    printf("\r\nTick %d \r\n",ulTick2);

    return DMS_OK;
}



VOID TEST_DMS_GetSysTick()
{
    CU_EQUAL(TEST_DMS_GetSysTick_00(),DMS_OK);
}

VOID TEST_suite_Tick(VOID)
{
    CU_pSuite suite;
    suite = CU_add_suite(__FUNCTION__, NULL, NULL);
    CU_ADD_TEST(suite, TEST_DMS_GetSysTick);
}

#ifdef __cplusplus
 #if __cplusplus
  }
 #endif
#endif /* __cplusplus */
